home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / sox / com / commerceone / CBL / n1_0 / Dimension.mod < prev    next >
Encoding:
Extensible Markup Language  |  2000-07-03  |  2.5 KB  |  80 lines  |  [STrk/SCPL]

  1. <?xml version="1.0"?>
  2. <!DOCTYPE schema SYSTEM "urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0">
  3.  
  4. <schema uri="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0" >
  5.  
  6. <intro>
  7. <p>Copyright Notice</p>
  8. <p>Common Business Library 2.0<br/>
  9. Copyright 1999 Commerce One, Inc.</p>
  10. <p>Permission is granted to use, copy, modify and distribute the DTD's, schemas
  11. and modules in the Commerce One Common Business Library Version 2.0 subject to the terms
  12. and conditions specified at http://www.marketsite.net/xml/cbl/copyright.html</p> 
  13. </intro>
  14.  
  15.     <!-- 
  16.         <![CDATA[
  17.         A Dimension encapsulates the measurement of some physical
  18.         quantity.  The dimension has a name (such as "Height," "Width," or
  19.         "Thickness"), a UnitOfMeasure (such as "FOT" for foot), and a Measurement 
  20.         value (for example, 7.00 ).  The Measurement value can also have an
  21.         equality indicator (such as equal to or greater than).
  22.         
  23.         In XML, a simple Dimension may be:
  24.             <Size DimName="Height" UnitOfMeasure="FOT">
  25.                 6.1
  26.             </Size>
  27.             
  28.         A more complex Dimension may be:
  29.             <Size Equality="GT" DimName="Other" 
  30.                 DimNameOther="Height, with shoes" UnitOfMeasure="FOT">
  31.                 6.3
  32.             </Size>
  33.             
  34.         Implementation note:  It makes sense for "Dimension" to
  35.         "extend" Measurement.  At the time of this writing, "Measurement"
  36.         could not be extended because SOX does not allow extension of
  37.         an <elementtype> with a <model> of <string>. 
  38.         ]]>
  39.      -->
  40.  
  41.     <elementtype name="Dimension">
  42.         <model>
  43.             <!--  The measured value.  -->
  44.             <string datatype="Decimal18_3" />
  45.         </model>
  46.  
  47.  
  48.         <!--  The Dimension being measured (for example, the
  49.             height, width, etc.)  -->
  50.         <attdef datatype="DimensionCode" name="DimName">
  51.             <required/>
  52.         </attdef>
  53.         
  54.         <!--  A DimNameOther is provided only if the Dim is Other.
  55.             It names the dimension.  -->
  56.         <attdef datatype="string" name="DimNameOther">
  57.         </attdef>
  58.         
  59.         <!--  The MeasUnit provides the unit of measurement
  60.             (eg, feet or meters).   -->
  61.         <attdef datatype= "UOMCode" name="UnitOfMeasure">
  62.             <required/>
  63.         </attdef>
  64.         
  65.         <!--  The relationship of the property being measured
  66.             to the supplied measured value.  Signifies whether
  67.             the property is Equal to, less than, etc. the value.  -->
  68.         <attdef datatype="EqualityCode" name="Equality" />
  69.                
  70.     </elementtype>
  71.     
  72.     <!--  A container for a list of one or more Dimension  -->
  73.     <elementtype name="ListOfDimension">
  74.         <model>
  75.             <element type="Dimension" occurs="+" />
  76.         </model>
  77.     </elementtype>
  78.     
  79. </schema>
  80.